<%--
  Created by IntelliJ IDEA.
  User: MACHENIKE
  Date: 2022/8/20
  Time: 16:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
    <title>修改</title>
</head>
<body>
${book}
<div>
    <form action="/Book/updateBook.do">
        <input value="${book.id}" name="id" hidden="hidden">
        <table border ="1px" align="center" cellpadding="0px" cellspacing="0px" width="50%">
            <tr>
                <td>书名</td>
                <td>
                    <input value="${book.name}" name="name">
                </td>
            </tr>
            <tr>
                <td>作者</td>
                <td>
                    <input value="${book.author}" name="author">
                </td>
            </tr>
            <tr>
                <td>出版社</td>
                <td>
                    <input value="${book.publish}" name="publish">
                </td>
            </tr>
            <tr>
                <td>出版时间</td>
                <td>
                    <input value="<fmt:formatDate
                            value="${book.publishdate}" pattern="yyyy-mm-dd"/>" name="publishdate">
                </td>
            </tr>
            <tr>
                <td>页数</td>
                <td>
                    <input value="${book.page}" name="page">
                </td>
            </tr>
            <tr>
                <td>价格</td>
                <td>
                    <input value="${book.price}" name="price">
                </td>
            </tr>
            <tr>
                <td>内容摘要</td>
                <td>
                    <input value="${book.content}" name="content">
                </td>
            </tr>
            <tr>
                <td>
                    <input value="提交" type="submit">
                </td>
                <td>
                    <button>
                        <a href="books.jsp">返回</a>
                    </button>
                </td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>
